package com.chry.ocr.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.chry.ocr.mapper.BookMapper;
import com.chry.ocr.pojo.Book;
import com.chry.ocr.service.BookService;
@Service
public class BookServiceImpl implements BookService{
	@Autowired
	private BookMapper bookMapper;
	
	public Book getBookById(Map<String, Object> params) {
		System.out.println("1");
		return bookMapper.selectBookById(params);
	}
	@Override
	public List<Book> selectById(String id) {
		// TODO Auto-generated method stub
		return bookMapper.selectById(id);
	}
	
	/*public BookMapper getBookMapper() {
		return bookMapper;
	}
	public void setBookMapper(BookMapper bookMapper) {
		this.bookMapper = bookMapper;
	}*/

}
